package best.driver.android.common.network;

import org.json.JSONObject;

public class ApiJsonRequest extends ApiRequest<JSONObject> {

    public ApiJsonRequest(Method method) {
        super(method);
    }

    @Override
    protected JSONObject processJsonResponse(Object response) {
        if(! (response instanceof JSONObject) ) {
            return null;
        }
        return (JSONObject) response;
    }
}